﻿using YNTK.Common.Const;
using SqlSugar;
using System;

namespace YNTK.SubDev.Entitys
{
    /// <summary>
    /// 报销单
    /// </summary>
    [SugarTable("zy_oa_wf_finrmbt")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class ZyOaWfFinrmbtEntity
    {
        /// <summary>
        /// 单号
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }
        
        /// <summary>
        /// 所属项目
        /// </summary>
        [SugarColumn(ColumnName = "ProId")]        
        public string ProId { get; set; }
        
        /// <summary>
        /// 报销单号
        /// </summary>
        [SugarColumn(ColumnName = "Reimbursement")]        
        public string Reimbursement { get; set; }
        
        /// <summary>
        /// 发生时间
        /// </summary>
        [SugarColumn(ColumnName = "HappedTime")]        
        public DateTime? HappedTime { get; set; }
        
        /// <summary>
        /// 报销人
        /// </summary>
        [SugarColumn(ColumnName = "Handler")]        
        public string Handler { get; set; }
        
        /// <summary>
        /// 报销事由
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]        
        public string Remark { get; set; }
        
        /// <summary>
        /// 报销总额
        /// </summary>
        [SugarColumn(ColumnName = "Total_Amount")]        
        public decimal TotalAmount { get; set; }
        
        /// <summary>
        /// 1 正常 2 审核中 3 审核完成 0作废
        /// </summary>
        [SugarColumn(ColumnName = "State")]        
        public int? State { get; set; }
        
        /// <summary>
        /// 审核人
        /// </summary>
        [SugarColumn(ColumnName = "Checker")]        
        public string Checker { get; set; }
        
        /// <summary>
        /// 审核时间
        /// </summary>
        [SugarColumn(ColumnName = "CheckTime")]        
        public DateTime? CheckTime { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime")]        
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 制单人
        /// </summary>
        [SugarColumn(ColumnName = "CreatePerson")]        
        public string CreatePerson { get; set; }
        
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "ModifyTime")]        
        public DateTime? ModifyTime { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "ModifyPerson")]        
        public string ModifyPerson { get; set; }
        
        /// <summary>
        /// 单据确认
        /// </summary>
        [SugarColumn(ColumnName = "Confirmation")]        
        public bool Confirmation { get; set; }
        
        /// <summary>
        /// 报销类别
        /// </summary>
        [SugarColumn(ColumnName = "CategoryId")]        
        public string CategoryId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "IsDel")]        
        public bool IsDel { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare1")]        
        public string Spare1 { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "Spare2")]        
        public string Spare2 { get; set; }
        
        /// <summary>
        /// 确认状态
        /// </summary>
        [SugarColumn(ColumnName = "ConfirmationState")]        
        public bool ConfirmationState { get; set; }
        
        /// <summary>
        /// 确认人
        /// </summary>
        [SugarColumn(ColumnName = "ConfirmationPerson")]        
        public string ConfirmationPerson { get; set; }
        
        /// <summary>
        /// 确认时间
        /// </summary>
        [SugarColumn(ColumnName = "ConfirmationTime")]        
        public DateTime? ConfirmationTime { get; set; }
        
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnName = "Appendix")]        
        public string Appendix { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "F_FlowId")]        
        public string FlowId { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "F_FlowTitle")]        
        public string FlowTitle { get; set; }
        
    }
}
